<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>仓库管理系统</title>
<link rel="shortcut icon"
	href="${pageContext.request.contextPath}/static/images/favicon.ico" />
<jsp:include page="easyuiIncludeJS.jsp"></jsp:include>
<script type="text/javascript">
	function loads() {
		//screen.width屏幕宽度
		//var leftwidth = document.getElementById("left").clientWidth;
		var clientWidth, clientHeight;
		clientHeight = document.body.clientHeight - 72;
		$("#tabs").tabs({
			height : clientHeight
		});
	}

	$(function() {
		tabSize();
	});

	function tabSize() {
		//窗口宽度
		var width = $(window).width() - 280;
		//窗口高度
		var height = $(window).height() - 100;
		var iframeList = $(".iframe");
		iframeList.each(function() {
			var dome = $(this);
			dome.attr("width", width);
			dome.attr("height", height);
		})
	}
</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
	onload="loads();">
	<div class="wrapper">
		<div class="header">
			<div class="topleft">
				<font color="white" size="5">仓库管理系统(SpringBoot+MyBatis+SQLServer技术开发，视频课程附项目源代码及相关资料下载)</font>
			</div>
			<div class="topright">
				<li title="点击查看个人信息"><span ><img
						src="${pageContext.request.contextPath}/static/images/peo.png" ></span><a
					href="javascript:void();">${sessionScope.userinfo.empName}</a></li>
				<li><span><img
						src="${pageContext.request.contextPath}/static/images/Set.png"></span><a
					href="javascript:void(0)"
					onclick="addTab('修改密码','${pageContext.request.contextPath}/admin/emp/pwd');">修改密码</a></li>
				<li><span><img src="${pageContext.request.contextPath}/static/images/exit.png"></span><a href="${pageContext.request.contextPath}/admin/exit">退出</a></li>
			</div>
		</div>
		<div class="left">
			<dl class="leftmenu">
				<dd>
					<div class="title">
						<span>仓库管理<i></i></span>
					</div>
					<ul class="menuson">
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab('采购批量入库','${pageContext.request.contextPath}/admin/materialInput/list');">采购批量入库</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab('采购入库单','${pageContext.request.contextPath}/admin/order/list?invalid=-1&aduitStatus=-1');">采购入库单</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab('采购退货单','${pageContext.request.contextPath}/admin/orderBack/list?invalid=-1&aduitStatus=-1');">采购退货单</a>
						</li>
						<li><cite></cite><a href="javascript:void(0);"
							onclick="addTab('销售出库单','${pageContext.request.contextPath}/admin/sale/list?invalid=-1&aduitStatus=-1');">销售出库单</a>
						</li>
						<li><cite></cite><a href="javascript:void(0);"
							onclick="addTab('销售退货单','${pageContext.request.contextPath}/admin/saleBack/list?invalid=-1&aduitStatus=-1');">销售退货单</a>
						</li>
						<li><cite></cite><a href="javascript:void(0);"
							onclick="addTab('盘点损益单','${pageContext.request.contextPath}/admin/panDian/list?invalid=-1&aduitStatus=-1');">盘点损益单</a>
						</li>
					</ul>
				</dd>
				<dd>
					<div class="title">
						<span>系统报表<i></i></span>
					</div>
					<ul class="menuson">
						<li><cite></cite>
							<a href="javascript:void(0);" 	onclick="addTab('仓库明细报表','${pageContext.request.contextPath}/admin/report/init');">仓库明细报表</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" 	onclick="addTab('仓库统计报表','${pageContext.request.contextPath}/admin/report/init2');">仓库统计报表</a>
						</li>
					</ul>
				</dd>
				<dd>
					<div class="title">
						<span>用户管理<i></i></span>
					</div>
					<ul class="menuson">
						<li><cite></cite><a href="javascript:void(0);"
											onclick="addTab('用户管理','${pageContext.request.contextPath}/admin/emp/list');">用户管理</a>
						</li>
					</ul>
				</dd>
				<dd>
					<div class="title">
						<span>安全管理<i></i></span>
					</div>
					<ul class="menuson">
						<li><cite></cite><a href="javascript:void(0);"
											onclick="addTab('权限管理','${pageContext.request.contextPath}/admin/characters/list');">权限管理</a>
						</li>
						<li><cite></cite><a href="javascript:void(0);"
											onclick="addTab('系统日志','${pageContext.request.contextPath}/admin/systemLog/list');">系统日志</a>
						</li>
					</ul>
				</dd>
				<dd>
					<div class="title">
						<span>基础数据<i></i></span>
					</div>
					<ul class="menuson">
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab1('物料类别','${pageContext.request.contextPath}/admin/materialType/list')" >物料类别</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab1('品种类别','${pageContext.request.contextPath}/admin/prodType/list')" >品种类别</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab1('物料管理','${pageContext.request.contextPath}/admin/material/materiallist')" >物料管理</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab1('仓库管理','${pageContext.request.contextPath}/admin/storage/list')" >仓库管理</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab1('供应商管理','${pageContext.request.contextPath}/admin/supplier/supplierlist')" >供应商管理</a>
						</li>
						<li><cite></cite>
							<a href="javascript:void(0);" onclick="addTab1('部门管理','${pageContext.request.contextPath}/admin/dep/list')" >部门管理</a>
						</li>
					</ul>
				</dd>
			</dl>
		</div>
		<div class="right">
			<div id="tabs" class="easyui-tabs"
				style="margin: 0; width: auto; height: 500px; border: true;" >
				<div title="首页" data-options="closable:false,cache:false"
					style="padding: 10px;">
					
				</div>
			</div>
		</div>
	</div>
</body>
</html>

